﻿<!DOCTYPE html>
@{
    Layout = null;
}

@using DLULearningNetwork
@using DLULearningNetworkModel
@using DLULearningNetwork.Libs

<html>
<head>
    <title>Lấy lại mật khẩu | Dalat University Learning Network</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script type="text/javascript" src="../../Scripts/Custom/jsDate.js"></script>
    <script type="text/javascript" src="../../Scripts/Custom/jsLoginRegister.js"></script>
</head>
<body>
    <div class="wrap">
        <div id="header_1">
            <div style="float: right; width:50%; text-align:center;">
                <a href="/Home/Index" style="text-decoration:none;">
                    <input type="button" class="button" value="Đăng ký" style="font-size: 14px;width: 100px;"/>
                </a>
                <br />
                <span class="text_1" style="line-height:22px;">Dalat University Learning Network giúp bạn kết nối với thầy cô và bạn bè, cùng nhau chia sẻ kiến thức</span>
            </div>
        </div>
    </div>
    <div class="box_1" style="margin-top: 20px;">
        <div class="wrap">
            <fieldset style="width:70%; margin:10px auto 10px auto;">
                <span class="title_1" style="padding-left: 10px;">
                    Lấy lại mật khẩu </span>
                <hr />
                @{
                    if(ViewBag.RecoverErrorMessage != null)
                    {
                        string message = ViewBag.RecoverErrorMessage.Trim();
                        if(message.Length > 0)
                        {
                            if(message == "0")
                            {
                                <div class="box_success" style="display:block;">Mật khẩu mới đã được gửi vào email của bạn</div>
                            }
                            else
                            {
                                <div class="box_error" style="display:block;">@message</div>
                            }
                        }
                    }    
                 }
                <form id="frmRecover" method="post">
                    <table style="width:auto; margin:10px auto 10px auto;">
                        <tr>
                            <td style="width: 120px;">
                                <span>Email:</span>
                            </td>
                            <td>
                                <input name="Email_Login" type="text" style="width:200px;" />
                            </td>
                        </tr>
                        <tr>
                             <td style="width: 120px;">
                                <span>Câu hỏi bí mật:</span>
                            </td>
                            <td>
                            @{
                                List<SecurityQuestion> securityQuestions = SecurityQuestions.All();
                            }
                            <select name="SecurityQuestion">
                                <option value="0">Chọn câu hỏi bí mật</option>
                                @{
                                    for (int i = 0; i < securityQuestions.Count; i++)
                                    {
                                    <option value="@securityQuestions[i].SecurityQuestionID_u">@securityQuestions[i].Content_s</option>
                                    }
                                }
                            </select>
                        </td>                           
                        </tr>
                        <tr>
                            <td style="width: 120px;">
                                Trả lời:
                            </td>
                            <td>
                                <input name="Answer" type="text" style="width: 250px;" />
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <input type="submit" value="Khôi phục mật khẩu" class="button" />
                            </td>                            
                        </tr>
                    </table>
                </form>
            </fieldset>
        </div>
    </div>
    <div class="wrap">
        <div id="footer">
            Dalat University Learning Network &copy; 2011. All rights reserved<br />
            Powered By <strong>Cactus</strong> - Version 1.0 Beta
        </div>
    </div>
</body>
</html>
